package cn.ibizlab.odoo.core.odoo_base.service.impl;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigInteger;
import java.util.Collection;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import cn.ibizlab.odoo.core.client.model.Ires_config_settings;
import cn.ibizlab.odoo.core.odoo_base.domain.Res_config_settings;
import cn.ibizlab.odoo.core.odoo_base.filter.Res_config_settingsSearchContext;
import cn.ibizlab.odoo.core.odoo_base.service.IRes_config_settingsService;
import cn.ibizlab.odoo.util.SearchResult;
import cn.ibizlab.odoo.util.log.IBIZLog;

/**
 * 实体[配置设定] 服务对象接口实现
 */
@Slf4j
@IBIZLog
@Service
public class Res_config_settingsServiceImpl implements IRes_config_settingsService {

    @Autowired
    private cn.ibizlab.odoo.core.client.service.Ires_config_settingsClientService res_config_settingsClientService;

    @Override
    public void createBatch(List<Res_config_settings> res_config_settingss, int batchSize) {

                        //res_config_settingsClientService.createBatch(res_config_settingss,batchSize) ;

    }

    @Override
    public boolean remove(Integer id) {
        boolean bOk = false ;
        Ires_config_settings clientModel = res_config_settingsClientService.createModel();
        clientModel.setId(id);
        res_config_settingsClientService.remove(clientModel) ;
        bOk = true ;
        return bOk ;
    }

    @Override
    public void removeBatch(Collection<? extends Serializable> idList, int batchSize) {

        //res_config_settingsClientService.removeBatch(res_config_settingss) ;

    }

    @Override
    public Res_config_settings get(Integer id) {
        Ires_config_settings clientModel = res_config_settingsClientService.createModel();
        clientModel.setId(id);
        res_config_settingsClientService.get(clientModel) ;
        return this.convert2Domain(clientModel,null);
    }

    @Override
    public Res_config_settings get(Res_config_settings res_config_settings) {
        Res_config_settings retres_config_settings = this.get(res_config_settings.getId()) ;
    	BeanCopier copier=BeanCopier.create(retres_config_settings.getClass(), res_config_settings.getClass(), false);
        copier.copy(retres_config_settings, res_config_settings, null);
        return res_config_settings ;
    }

    @Override
    public void updateBatch(List<Res_config_settings> res_config_settingss, int batchSize) {

        //res_config_settingsClientService.updateBatch(res_config_settingss,batchSize) ;

    }

    @Override
    public boolean update(Res_config_settings res_config_settings) {
        boolean bOk = false ;
        Ires_config_settings clientModel = this.convert2Model(res_config_settings,null);
        res_config_settingsClientService.update(clientModel) ;
        this.convert2Domain(clientModel,res_config_settings) ;
        bOk = true;
        return bOk ;
    }

    @Override
    public boolean create(Res_config_settings res_config_settings) {
        boolean bOk = false ;
        Ires_config_settings clientModel = this.convert2Model(res_config_settings,null);
        res_config_settingsClientService.create(clientModel) ;
        this.convert2Domain(clientModel,res_config_settings);
        bOk = true ;

        return bOk ;
    }

    /**
     * 查询集合 默认查询
     */
    @Override
    public Page<Res_config_settings> searchDefault(Res_config_settingsSearchContext context) {
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());
    }


    /**
     * 根据科目表模版查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_chart_template(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据摘要查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_digest(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据EMail模板查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_template(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据产品查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_deposit_default_product(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据公司查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_company(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据用户查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_auth_signup_template_user(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据用户查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_create(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据用户查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_write(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }

    /**
     * 根据报价单模板查询
     */
    @Override
    public Page<Res_config_settings> selectByOdoo_default_sale_order_template(Integer id){
        Res_config_settingsSearchContext context = new Res_config_settingsSearchContext();
        if(!org.springframework.util.StringUtils.isEmpty(id)){
            cn.ibizlab.odoo.util.SearchFieldFilter fieldFilter=new cn.ibizlab.odoo.util.SearchFieldFilter();
            fieldFilter.setParam("id");
            fieldFilter.setCondition(cn.ibizlab.odoo.util.enums.SearchFieldType.EQ);
            fieldFilter.setValue(id);
            context.getCondition().add(fieldFilter);
        }
        List<Res_config_settings> list = new ArrayList<Res_config_settings>();
        Page<cn.ibizlab.odoo.core.client.model.Ires_config_settings> clientModelList = res_config_settingsClientService.search(context) ;
        for(cn.ibizlab.odoo.core.client.model.Ires_config_settings clientModel : clientModelList){
            list.add( this.convert2Domain(clientModel,null));
        }
        return new PageImpl<Res_config_settings>(list, context.getPageable(), clientModelList.getTotalElements());

    }



    public Ires_config_settings convert2Model(Res_config_settings domain , Ires_config_settings model) {
        if(domain == null)
            return model ;
        if(model==null){
            model = res_config_settingsClientService.createModel() ;
        }

         if(domain.getModule_account_bank_statement_import_qifDirtyFlag())
            model.setModule_account_bank_statement_import_qif(domain.getModule_account_bank_statement_import_qif());
         if(domain.getModule_account_bank_statement_import_ofxDirtyFlag())
            model.setModule_account_bank_statement_import_ofx(domain.getModule_account_bank_statement_import_ofx());
         if(domain.getHas_google_mapsDirtyFlag())
            model.setHas_google_maps(domain.getHas_google_maps());
         if(domain.getModule_l10n_eu_serviceDirtyFlag())
            model.setModule_l10n_eu_service(domain.getModule_l10n_eu_service());
         if(domain.getCdn_activatedDirtyFlag())
            model.setCdn_activated(domain.getCdn_activated());
         if(domain.getWebsite_default_lang_codeDirtyFlag())
            model.setWebsite_default_lang_code(domain.getWebsite_default_lang_code());
         if(domain.getAuth_signup_reset_passwordDirtyFlag())
            model.setAuth_signup_reset_password(domain.getAuth_signup_reset_password());
         if(domain.getWebsite_country_group_idsDirtyFlag())
            model.setWebsite_country_group_ids(domain.getWebsite_country_group_ids());
         if(domain.getSocial_instagramDirtyFlag())
            model.setSocial_instagram(domain.getSocial_instagram());
         if(domain.getModule_purchase_requisitionDirtyFlag())
            model.setModule_purchase_requisition(domain.getModule_purchase_requisition());
         if(domain.getModule_delivery_easypostDirtyFlag())
            model.setModule_delivery_easypost(domain.getModule_delivery_easypost());
         if(domain.getGroup_discount_per_so_lineDirtyFlag())
            model.setGroup_discount_per_so_line(domain.getGroup_discount_per_so_line());
         if(domain.getAutomatic_invoiceDirtyFlag())
            model.setAutomatic_invoice(domain.getAutomatic_invoice());
         if(domain.getModule_account_plaidDirtyFlag())
            model.setModule_account_plaid(domain.getModule_account_plaid());
         if(domain.getGoogle_management_client_idDirtyFlag())
            model.setGoogle_management_client_id(domain.getGoogle_management_client_id());
         if(domain.getIdDirtyFlag())
            model.setId(domain.getId());
         if(domain.getModule_account_check_printingDirtyFlag())
            model.setModule_account_check_printing(domain.getModule_account_check_printing());
         if(domain.getModule_partner_autocompleteDirtyFlag())
            model.setModule_partner_autocomplete(domain.getModule_partner_autocomplete());
         if(domain.getLanguage_countDirtyFlag())
            model.setLanguage_count(domain.getLanguage_count());
         if(domain.getModule_website_linksDirtyFlag())
            model.setModule_website_links(domain.getModule_website_links());
         if(domain.getWebsite_form_enable_metadataDirtyFlag())
            model.setWebsite_form_enable_metadata(domain.getWebsite_form_enable_metadata());
         if(domain.getHas_social_networkDirtyFlag())
            model.setHas_social_network(domain.getHas_social_network());
         if(domain.getGroup_sale_delivery_addressDirtyFlag())
            model.setGroup_sale_delivery_address(domain.getGroup_sale_delivery_address());
         if(domain.getGoogle_analytics_keyDirtyFlag())
            model.setGoogle_analytics_key(domain.getGoogle_analytics_key());
         if(domain.getModule_auth_ldapDirtyFlag())
            model.setModule_auth_ldap(domain.getModule_auth_ldap());
         if(domain.getSpecific_user_accountDirtyFlag())
            model.setSpecific_user_account(domain.getSpecific_user_account());
         if(domain.getModule_website_hr_recruitmentDirtyFlag())
            model.setModule_website_hr_recruitment(domain.getModule_website_hr_recruitment());
         if(domain.getModule_project_forecastDirtyFlag())
            model.setModule_project_forecast(domain.getModule_project_forecast());
         if(domain.getGroup_stock_tracking_ownerDirtyFlag())
            model.setGroup_stock_tracking_owner(domain.getGroup_stock_tracking_owner());
         if(domain.getModule_google_calendarDirtyFlag())
            model.setModule_google_calendar(domain.getModule_google_calendar());
         if(domain.getModule_accountDirtyFlag())
            model.setModule_account(domain.getModule_account());
         if(domain.getModule_google_driveDirtyFlag())
            model.setModule_google_drive(domain.getModule_google_drive());
         if(domain.getPos_pricelist_settingDirtyFlag())
            model.setPos_pricelist_setting(domain.getPos_pricelist_setting());
         if(domain.getCompany_share_partnerDirtyFlag())
            model.setCompany_share_partner(domain.getCompany_share_partner());
         if(domain.getModule_currency_rate_liveDirtyFlag())
            model.setModule_currency_rate_live(domain.getModule_currency_rate_live());
         if(domain.getGroup_proforma_salesDirtyFlag())
            model.setGroup_proforma_sales(domain.getGroup_proforma_sales());
         if(domain.getModule_delivery_fedexDirtyFlag())
            model.setModule_delivery_fedex(domain.getModule_delivery_fedex());
         if(domain.getModule_product_email_templateDirtyFlag())
            model.setModule_product_email_template(domain.getModule_product_email_template());
         if(domain.getShow_effectDirtyFlag())
            model.setShow_effect(domain.getShow_effect());
         if(domain.getDefault_picking_policyDirtyFlag())
            model.setDefault_picking_policy(domain.getDefault_picking_policy());
         if(domain.getSocial_youtubeDirtyFlag())
            model.setSocial_youtube(domain.getSocial_youtube());
         if(domain.getWebsite_company_idDirtyFlag())
            model.setWebsite_company_id(domain.getWebsite_company_id());
         if(domain.getModule_mrp_byproductDirtyFlag())
            model.setModule_mrp_byproduct(domain.getModule_mrp_byproduct());
         if(domain.getModule_delivery_uspsDirtyFlag())
            model.setModule_delivery_usps(domain.getModule_delivery_usps());
         if(domain.getModule_delivery_dhlDirtyFlag())
            model.setModule_delivery_dhl(domain.getModule_delivery_dhl());
         if(domain.getGroup_project_ratingDirtyFlag())
            model.setGroup_project_rating(domain.getGroup_project_rating());
         if(domain.getGoogle_maps_api_keyDirtyFlag())
            model.setGoogle_maps_api_key(domain.getGoogle_maps_api_key());
         if(domain.getGroup_use_leadDirtyFlag())
            model.setGroup_use_lead(domain.getGroup_use_lead());
         if(domain.getGroup_stock_tracking_lotDirtyFlag())
            model.setGroup_stock_tracking_lot(domain.getGroup_stock_tracking_lot());
         if(domain.getGroup_stock_adv_locationDirtyFlag())
            model.setGroup_stock_adv_location(domain.getGroup_stock_adv_location());
         if(domain.getPos_sales_priceDirtyFlag())
            model.setPos_sales_price(domain.getPos_sales_price());
         if(domain.getHas_chart_of_accountsDirtyFlag())
            model.setHas_chart_of_accounts(domain.getHas_chart_of_accounts());
         if(domain.getMulti_sales_price_methodDirtyFlag())
            model.setMulti_sales_price_method(domain.getMulti_sales_price_method());
         if(domain.getWrite_dateDirtyFlag())
            model.setWrite_date(domain.getWrite_date());
         if(domain.getModule_procurement_jitDirtyFlag())
            model.setModule_procurement_jit(domain.getModule_procurement_jit());
         if(domain.getModule_account_assetDirtyFlag())
            model.setModule_account_asset(domain.getModule_account_asset());
         if(domain.getUse_mailgatewayDirtyFlag())
            model.setUse_mailgateway(domain.getUse_mailgateway());
         if(domain.getGroup_sale_pricelistDirtyFlag())
            model.setGroup_sale_pricelist(domain.getGroup_sale_pricelist());
         if(domain.getCrm_default_team_idDirtyFlag())
            model.setCrm_default_team_id(domain.getCrm_default_team_id());
         if(domain.getGroup_stock_multi_locationsDirtyFlag())
            model.setGroup_stock_multi_locations(domain.getGroup_stock_multi_locations());
         if(domain.getUse_manufacturing_leadDirtyFlag())
            model.setUse_manufacturing_lead(domain.getUse_manufacturing_lead());
         if(domain.getModule_google_spreadsheetDirtyFlag())
            model.setModule_google_spreadsheet(domain.getModule_google_spreadsheet());
         if(domain.getShow_line_subtotals_tax_selectionDirtyFlag())
            model.setShow_line_subtotals_tax_selection(domain.getShow_line_subtotals_tax_selection());
         if(domain.getLanguage_idsDirtyFlag())
            model.setLanguage_ids(domain.getLanguage_ids());
         if(domain.getModule_website_sale_deliveryDirtyFlag())
            model.setModule_website_sale_delivery(domain.getModule_website_sale_delivery());
         if(domain.getModule_mrp_mpsDirtyFlag())
            model.setModule_mrp_mps(domain.getModule_mrp_mps());
         if(domain.getPartner_autocomplete_insufficient_creditDirtyFlag())
            model.setPartner_autocomplete_insufficient_credit(domain.getPartner_autocomplete_insufficient_credit());
         if(domain.getModule_hr_org_chartDirtyFlag())
            model.setModule_hr_org_chart(domain.getModule_hr_org_chart());
         if(domain.getModule_product_expiryDirtyFlag())
            model.setModule_product_expiry(domain.getModule_product_expiry());
         if(domain.getModule_delivery_bpostDirtyFlag())
            model.setModule_delivery_bpost(domain.getModule_delivery_bpost());
         if(domain.getModule_stock_barcodeDirtyFlag())
            model.setModule_stock_barcode(domain.getModule_stock_barcode());
         if(domain.getSocial_githubDirtyFlag())
            model.setSocial_github(domain.getSocial_github());
         if(domain.getModule_account_intrastatDirtyFlag())
            model.setModule_account_intrastat(domain.getModule_account_intrastat());
         if(domain.getAuto_done_settingDirtyFlag())
            model.setAuto_done_setting(domain.getAuto_done_setting());
         if(domain.getAuth_signup_uninvitedDirtyFlag())
            model.setAuth_signup_uninvited(domain.getAuth_signup_uninvited());
         if(domain.getCompany_share_productDirtyFlag())
            model.setCompany_share_product(domain.getCompany_share_product());
         if(domain.getGroup_sale_order_templateDirtyFlag())
            model.setGroup_sale_order_template(domain.getGroup_sale_order_template());
         if(domain.getModule_account_sepa_direct_debitDirtyFlag())
            model.setModule_account_sepa_direct_debit(domain.getModule_account_sepa_direct_debit());
         if(domain.getUse_quotation_validity_daysDirtyFlag())
            model.setUse_quotation_validity_days(domain.getUse_quotation_validity_days());
         if(domain.getModule_account_reports_followupDirtyFlag())
            model.setModule_account_reports_followup(domain.getModule_account_reports_followup());
         if(domain.getModule_account_batch_paymentDirtyFlag())
            model.setModule_account_batch_payment(domain.getModule_account_batch_payment());
         if(domain.getSocial_twitterDirtyFlag())
            model.setSocial_twitter(domain.getSocial_twitter());
         if(domain.getModule_account_budgetDirtyFlag())
            model.setModule_account_budget(domain.getModule_account_budget());
         if(domain.getGroup_mrp_routingsDirtyFlag())
            model.setGroup_mrp_routings(domain.getGroup_mrp_routings());
         if(domain.getGroup_cash_roundingDirtyFlag())
            model.setGroup_cash_rounding(domain.getGroup_cash_rounding());
         if(domain.getModule_stock_landed_costsDirtyFlag())
            model.setModule_stock_landed_costs(domain.getModule_stock_landed_costs());
         if(domain.getWebsite_nameDirtyFlag())
            model.setWebsite_name(domain.getWebsite_name());
         if(domain.getModule_website_sale_stockDirtyFlag())
            model.setModule_website_sale_stock(domain.getModule_website_sale_stock());
         if(domain.getGroup_website_popup_on_exitDirtyFlag())
            model.setGroup_website_popup_on_exit(domain.getGroup_website_popup_on_exit());
         if(domain.getModule_website_event_trackDirtyFlag())
            model.setModule_website_event_track(domain.getModule_website_event_track());
         if(domain.getGroup_manage_vendor_priceDirtyFlag())
            model.setGroup_manage_vendor_price(domain.getGroup_manage_vendor_price());
         if(domain.getModule_deliveryDirtyFlag())
            model.setModule_delivery(domain.getModule_delivery());
         if(domain.getModule_account_invoice_extractDirtyFlag())
            model.setModule_account_invoice_extract(domain.getModule_account_invoice_extract());
         if(domain.getChannel_idDirtyFlag())
            model.setChannel_id(domain.getChannel_id());
         if(domain.getGroup_warning_saleDirtyFlag())
            model.setGroup_warning_sale(domain.getGroup_warning_sale());
         if(domain.getCdn_urlDirtyFlag())
            model.setCdn_url(domain.getCdn_url());
         if(domain.getModule_event_barcodeDirtyFlag())
            model.setModule_event_barcode(domain.getModule_event_barcode());
         if(domain.getAlias_domainDirtyFlag())
            model.setAlias_domain(domain.getAlias_domain());
         if(domain.getSocial_linkedinDirtyFlag())
            model.setSocial_linkedin(domain.getSocial_linkedin());
         if(domain.getGroup_stock_multi_warehousesDirtyFlag())
            model.setGroup_stock_multi_warehouses(domain.getGroup_stock_multi_warehouses());
         if(domain.getSalesperson_idDirtyFlag())
            model.setSalesperson_id(domain.getSalesperson_id());
         if(domain.getModule_account_reportsDirtyFlag())
            model.setModule_account_reports(domain.getModule_account_reports());
         if(domain.getGroup_product_pricelistDirtyFlag())
            model.setGroup_product_pricelist(domain.getGroup_product_pricelist());
         if(domain.getModule_crm_phone_validationDirtyFlag())
            model.setModule_crm_phone_validation(domain.getModule_crm_phone_validation());
         if(domain.getModule_website_versionDirtyFlag())
            model.setModule_website_version(domain.getModule_website_version());
         if(domain.getModule_base_importDirtyFlag())
            model.setModule_base_import(domain.getModule_base_import());
         if(domain.get__last_updateDirtyFlag())
            model.set__last_update(domain.get__last_update());
         if(domain.getModule_account_bank_statement_import_csvDirtyFlag())
            model.setModule_account_bank_statement_import_csv(domain.getModule_account_bank_statement_import_csv());
         if(domain.getModule_account_taxcloudDirtyFlag())
            model.setModule_account_taxcloud(domain.getModule_account_taxcloud());
         if(domain.getUse_sale_noteDirtyFlag())
            model.setUse_sale_note(domain.getUse_sale_note());
         if(domain.getCart_abandoned_delayDirtyFlag())
            model.setCart_abandoned_delay(domain.getCart_abandoned_delay());
         if(domain.getWebsite_domainDirtyFlag())
            model.setWebsite_domain(domain.getWebsite_domain());
         if(domain.getModule_account_accountantDirtyFlag())
            model.setModule_account_accountant(domain.getModule_account_accountant());
         if(domain.getModule_sale_marginDirtyFlag())
            model.setModule_sale_margin(domain.getModule_sale_margin());
         if(domain.getDigest_emailsDirtyFlag())
            model.setDigest_emails(domain.getDigest_emails());
         if(domain.getModule_padDirtyFlag())
            model.setModule_pad(domain.getModule_pad());
         if(domain.getGroup_warning_accountDirtyFlag())
            model.setGroup_warning_account(domain.getGroup_warning_account());
         if(domain.getGroup_display_incotermDirtyFlag())
            model.setGroup_display_incoterm(domain.getGroup_display_incoterm());
         if(domain.getModule_website_sale_wishlistDirtyFlag())
            model.setModule_website_sale_wishlist(domain.getModule_website_sale_wishlist());
         if(domain.getUser_default_rightsDirtyFlag())
            model.setUser_default_rights(domain.getUser_default_rights());
         if(domain.getDefault_purchase_methodDirtyFlag())
            model.setDefault_purchase_method(domain.getDefault_purchase_method());
         if(domain.getGroup_delivery_invoice_addressDirtyFlag())
            model.setGroup_delivery_invoice_address(domain.getGroup_delivery_invoice_address());
         if(domain.getGroup_lot_on_delivery_slipDirtyFlag())
            model.setGroup_lot_on_delivery_slip(domain.getGroup_lot_on_delivery_slip());
         if(domain.getModule_event_saleDirtyFlag())
            model.setModule_event_sale(domain.getModule_event_sale());
         if(domain.getGroup_show_line_subtotals_tax_includedDirtyFlag())
            model.setGroup_show_line_subtotals_tax_included(domain.getGroup_show_line_subtotals_tax_included());
         if(domain.getDisplay_nameDirtyFlag())
            model.setDisplay_name(domain.getDisplay_name());
         if(domain.getGroup_product_variantDirtyFlag())
            model.setGroup_product_variant(domain.getGroup_product_variant());
         if(domain.getModule_account_sepaDirtyFlag())
            model.setModule_account_sepa(domain.getModule_account_sepa());
         if(domain.getGroup_multi_currencyDirtyFlag())
            model.setGroup_multi_currency(domain.getGroup_multi_currency());
         if(domain.getGroup_products_in_billsDirtyFlag())
            model.setGroup_products_in_bills(domain.getGroup_products_in_bills());
         if(domain.getGroup_analytic_accountingDirtyFlag())
            model.setGroup_analytic_accounting(domain.getGroup_analytic_accounting());
         if(domain.getGroup_stock_packagingDirtyFlag())
            model.setGroup_stock_packaging(domain.getGroup_stock_packaging());
         if(domain.getWebsite_slide_google_app_keyDirtyFlag())
            model.setWebsite_slide_google_app_key(domain.getWebsite_slide_google_app_key());
         if(domain.getPo_order_approvalDirtyFlag())
            model.setPo_order_approval(domain.getPo_order_approval());
         if(domain.getIs_installed_saleDirtyFlag())
            model.setIs_installed_sale(domain.getIs_installed_sale());
         if(domain.getModule_account_paymentDirtyFlag())
            model.setModule_account_payment(domain.getModule_account_payment());
         if(domain.getGroup_analytic_tagsDirtyFlag())
            model.setGroup_analytic_tags(domain.getGroup_analytic_tags());
         if(domain.getGroup_sale_order_datesDirtyFlag())
            model.setGroup_sale_order_dates(domain.getGroup_sale_order_dates());
         if(domain.getModule_voipDirtyFlag())
            model.setModule_voip(domain.getModule_voip());
         if(domain.getCart_recovery_mail_templateDirtyFlag())
            model.setCart_recovery_mail_template(domain.getCart_recovery_mail_template());
         if(domain.getGroup_multi_websiteDirtyFlag())
            model.setGroup_multi_website(domain.getGroup_multi_website());
         if(domain.getModule_auth_oauthDirtyFlag())
            model.setModule_auth_oauth(domain.getModule_auth_oauth());
         if(domain.getSale_delivery_settingsDirtyFlag())
            model.setSale_delivery_settings(domain.getSale_delivery_settings());
         if(domain.getModule_sale_quotation_builderDirtyFlag())
            model.setModule_sale_quotation_builder(domain.getModule_sale_quotation_builder());
         if(domain.getModule_inter_company_rulesDirtyFlag())
            model.setModule_inter_company_rules(domain.getModule_inter_company_rules());
         if(domain.getUse_security_leadDirtyFlag())
            model.setUse_security_lead(domain.getUse_security_lead());
         if(domain.getDefault_invoice_policyDirtyFlag())
            model.setDefault_invoice_policy(domain.getDefault_invoice_policy());
         if(domain.getMulti_sales_priceDirtyFlag())
            model.setMulti_sales_price(domain.getMulti_sales_price());
         if(domain.getLock_confirmed_poDirtyFlag())
            model.setLock_confirmed_po(domain.getLock_confirmed_po());
         if(domain.getProduct_weight_in_lbsDirtyFlag())
            model.setProduct_weight_in_lbs(domain.getProduct_weight_in_lbs());
         if(domain.getCreate_dateDirtyFlag())
            model.setCreate_date(domain.getCreate_date());
         if(domain.getHas_google_analytics_dashboardDirtyFlag())
            model.setHas_google_analytics_dashboard(domain.getHas_google_analytics_dashboard());
         if(domain.getModule_stock_picking_batchDirtyFlag())
            model.setModule_stock_picking_batch(domain.getModule_stock_picking_batch());
         if(domain.getWebsite_idDirtyFlag())
            model.setWebsite_id(domain.getWebsite_id());
         if(domain.getExpense_alias_prefixDirtyFlag())
            model.setExpense_alias_prefix(domain.getExpense_alias_prefix());
         if(domain.getModule_account_deferred_revenueDirtyFlag())
            model.setModule_account_deferred_revenue(domain.getModule_account_deferred_revenue());
         if(domain.getSocial_facebookDirtyFlag())
            model.setSocial_facebook(domain.getSocial_facebook());
         if(domain.getModule_web_unsplashDirtyFlag())
            model.setModule_web_unsplash(domain.getModule_web_unsplash());
         if(domain.getGroup_mass_mailing_campaignDirtyFlag())
            model.setGroup_mass_mailing_campaign(domain.getGroup_mass_mailing_campaign());
         if(domain.getModule_account_bank_statement_import_camtDirtyFlag())
            model.setModule_account_bank_statement_import_camt(domain.getModule_account_bank_statement_import_camt());
         if(domain.getModule_product_marginDirtyFlag())
            model.setModule_product_margin(domain.getModule_product_margin());
         if(domain.getGroup_subtask_projectDirtyFlag())
            model.setGroup_subtask_project(domain.getGroup_subtask_project());
         if(domain.getModule_account_3way_matchDirtyFlag())
            model.setModule_account_3way_match(domain.getModule_account_3way_match());
         if(domain.getModule_website_sale_digitalDirtyFlag())
            model.setModule_website_sale_digital(domain.getModule_website_sale_digital());
         if(domain.getModule_sale_couponDirtyFlag())
            model.setModule_sale_coupon(domain.getModule_sale_coupon());
         if(domain.getShow_blacklist_buttonsDirtyFlag())
            model.setShow_blacklist_buttons(domain.getShow_blacklist_buttons());
         if(domain.getGroup_warning_stockDirtyFlag())
            model.setGroup_warning_stock(domain.getGroup_warning_stock());
         if(domain.getGroup_multi_companyDirtyFlag())
            model.setGroup_multi_company(domain.getGroup_multi_company());
         if(domain.getGroup_attendance_use_pinDirtyFlag())
            model.setGroup_attendance_use_pin(domain.getGroup_attendance_use_pin());
         if(domain.getSalesteam_idDirtyFlag())
            model.setSalesteam_id(domain.getSalesteam_id());
         if(domain.getFaviconDirtyFlag())
            model.setFavicon(domain.getFavicon());
         if(domain.getModule_website_sale_comparisonDirtyFlag())
            model.setModule_website_sale_comparison(domain.getModule_website_sale_comparison());
         if(domain.getAvailable_thresholdDirtyFlag())
            model.setAvailable_threshold(domain.getAvailable_threshold());
         if(domain.getUse_po_leadDirtyFlag())
            model.setUse_po_lead(domain.getUse_po_lead());
         if(domain.getGroup_fiscal_yearDirtyFlag())
            model.setGroup_fiscal_year(domain.getGroup_fiscal_year());
         if(domain.getModule_hr_timesheetDirtyFlag())
            model.setModule_hr_timesheet(domain.getModule_hr_timesheet());
         if(domain.getModule_mrp_plmDirtyFlag())
            model.setModule_mrp_plm(domain.getModule_mrp_plm());
         if(domain.getModule_account_yodleeDirtyFlag())
            model.setModule_account_yodlee(domain.getModule_account_yodlee());
         if(domain.getCdn_filtersDirtyFlag())
            model.setCdn_filters(domain.getCdn_filters());
         if(domain.getUse_propagation_minimum_deltaDirtyFlag())
            model.setUse_propagation_minimum_delta(domain.getUse_propagation_minimum_delta());
         if(domain.getModule_delivery_upsDirtyFlag())
            model.setModule_delivery_ups(domain.getModule_delivery_ups());
         if(domain.getFail_counterDirtyFlag())
            model.setFail_counter(domain.getFail_counter());
         if(domain.getGroup_stock_production_lotDirtyFlag())
            model.setGroup_stock_production_lot(domain.getGroup_stock_production_lot());
         if(domain.getHas_accounting_entriesDirtyFlag())
            model.setHas_accounting_entries(domain.getHas_accounting_entries());
         if(domain.getGroup_uomDirtyFlag())
            model.setGroup_uom(domain.getGroup_uom());
         if(domain.getMass_mailing_outgoing_mail_serverDirtyFlag())
            model.setMass_mailing_outgoing_mail_server(domain.getMass_mailing_outgoing_mail_server());
         if(domain.getCrm_alias_prefixDirtyFlag())
            model.setCrm_alias_prefix(domain.getCrm_alias_prefix());
         if(domain.getSocial_googleplusDirtyFlag())
            model.setSocial_googleplus(domain.getSocial_googleplus());
         if(domain.getGroup_route_so_linesDirtyFlag())
            model.setGroup_route_so_lines(domain.getGroup_route_so_lines());
         if(domain.getGoogle_management_client_secretDirtyFlag())
            model.setGoogle_management_client_secret(domain.getGoogle_management_client_secret());
         if(domain.getSocial_default_imageDirtyFlag())
            model.setSocial_default_image(domain.getSocial_default_image());
         if(domain.getHas_google_analyticsDirtyFlag())
            model.setHas_google_analytics(domain.getHas_google_analytics());
         if(domain.getModule_website_event_questionsDirtyFlag())
            model.setModule_website_event_questions(domain.getModule_website_event_questions());
         if(domain.getWebsite_default_lang_idDirtyFlag())
            model.setWebsite_default_lang_id(domain.getWebsite_default_lang_id());
         if(domain.getInventory_availabilityDirtyFlag())
            model.setInventory_availability(domain.getInventory_availability());
         if(domain.getGroup_warning_purchaseDirtyFlag())
            model.setGroup_warning_purchase(domain.getGroup_warning_purchase());
         if(domain.getModule_quality_controlDirtyFlag())
            model.setModule_quality_control(domain.getModule_quality_control());
         if(domain.getGenerate_lead_from_aliasDirtyFlag())
            model.setGenerate_lead_from_alias(domain.getGenerate_lead_from_alias());
         if(domain.getSale_pricelist_settingDirtyFlag())
            model.setSale_pricelist_setting(domain.getSale_pricelist_setting());
         if(domain.getGroup_pricelist_itemDirtyFlag())
            model.setGroup_pricelist_item(domain.getGroup_pricelist_item());
         if(domain.getExternal_email_server_defaultDirtyFlag())
            model.setExternal_email_server_default(domain.getExternal_email_server_default());
         if(domain.getUnsplash_access_keyDirtyFlag())
            model.setUnsplash_access_key(domain.getUnsplash_access_key());
         if(domain.getModule_base_gengoDirtyFlag())
            model.setModule_base_gengo(domain.getModule_base_gengo());
         if(domain.getModule_website_event_saleDirtyFlag())
            model.setModule_website_event_sale(domain.getModule_website_event_sale());
         if(domain.getCrm_default_user_idDirtyFlag())
            model.setCrm_default_user_id(domain.getCrm_default_user_id());
         if(domain.getModule_stock_dropshippingDirtyFlag())
            model.setModule_stock_dropshipping(domain.getModule_stock_dropshipping());
         if(domain.getModule_crm_revealDirtyFlag())
            model.setModule_crm_reveal(domain.getModule_crm_reveal());
         if(domain.getMass_mailing_mail_server_idDirtyFlag())
            model.setMass_mailing_mail_server_id(domain.getMass_mailing_mail_server_id());
         if(domain.getGroup_show_line_subtotals_tax_excludedDirtyFlag())
            model.setGroup_show_line_subtotals_tax_excluded(domain.getGroup_show_line_subtotals_tax_excluded());
         if(domain.getModule_hr_recruitment_surveyDirtyFlag())
            model.setModule_hr_recruitment_survey(domain.getModule_hr_recruitment_survey());
         if(domain.getModule_mrp_workorderDirtyFlag())
            model.setModule_mrp_workorder(domain.getModule_mrp_workorder());
         if(domain.getModule_pos_mercuryDirtyFlag())
            model.setModule_pos_mercury(domain.getModule_pos_mercury());
         if(domain.getInvoice_reference_typeDirtyFlag())
            model.setInvoice_reference_type(domain.getInvoice_reference_type());
         if(domain.getCompany_currency_idDirtyFlag())
            model.setCompany_currency_id(domain.getCompany_currency_id());
         if(domain.getTax_exigibilityDirtyFlag())
            model.setTax_exigibility(domain.getTax_exigibility());
         if(domain.getWrite_uid_textDirtyFlag())
            model.setWrite_uid_text(domain.getWrite_uid_text());
         if(domain.getAccount_bank_reconciliation_startDirtyFlag())
            model.setAccount_bank_reconciliation_start(domain.getAccount_bank_reconciliation_start());
         if(domain.getTax_cash_basis_journal_idDirtyFlag())
            model.setTax_cash_basis_journal_id(domain.getTax_cash_basis_journal_id());
         if(domain.getPo_leadDirtyFlag())
            model.setPo_lead(domain.getPo_lead());
         if(domain.getSnailmail_colorDirtyFlag())
            model.setSnailmail_color(domain.getSnailmail_color());
         if(domain.getPaperformat_idDirtyFlag())
            model.setPaperformat_id(domain.getPaperformat_id());
         if(domain.getPortal_confirmation_signDirtyFlag())
            model.setPortal_confirmation_sign(domain.getPortal_confirmation_sign());
         if(domain.getCurrency_idDirtyFlag())
            model.setCurrency_id(domain.getCurrency_id());
         if(domain.getDigest_id_textDirtyFlag())
            model.setDigest_id_text(domain.getDigest_id_text());
         if(domain.getSale_noteDirtyFlag())
            model.setSale_note(domain.getSale_note());
         if(domain.getAuth_signup_template_user_id_textDirtyFlag())
            model.setAuth_signup_template_user_id_text(domain.getAuth_signup_template_user_id_text());
         if(domain.getInvoice_is_printDirtyFlag())
            model.setInvoice_is_print(domain.getInvoice_is_print());
         if(domain.getDeposit_default_product_id_textDirtyFlag())
            model.setDeposit_default_product_id_text(domain.getDeposit_default_product_id_text());
         if(domain.getResource_calendar_idDirtyFlag())
            model.setResource_calendar_id(domain.getResource_calendar_id());
         if(domain.getPo_lockDirtyFlag())
            model.setPo_lock(domain.getPo_lock());
         if(domain.getInvoice_is_snailmailDirtyFlag())
            model.setInvoice_is_snailmail(domain.getInvoice_is_snailmail());
         if(domain.getManufacturing_leadDirtyFlag())
            model.setManufacturing_lead(domain.getManufacturing_lead());
         if(domain.getPo_double_validationDirtyFlag())
            model.setPo_double_validation(domain.getPo_double_validation());
         if(domain.getReport_footerDirtyFlag())
            model.setReport_footer(domain.getReport_footer());
         if(domain.getTemplate_id_textDirtyFlag())
            model.setTemplate_id_text(domain.getTemplate_id_text());
         if(domain.getInvoice_is_emailDirtyFlag())
            model.setInvoice_is_email(domain.getInvoice_is_email());
         if(domain.getPortal_confirmation_payDirtyFlag())
            model.setPortal_confirmation_pay(domain.getPortal_confirmation_pay());
         if(domain.getQr_codeDirtyFlag())
            model.setQr_code(domain.getQr_code());
         if(domain.getSnailmail_duplexDirtyFlag())
            model.setSnailmail_duplex(domain.getSnailmail_duplex());
         if(domain.getCreate_uid_textDirtyFlag())
            model.setCreate_uid_text(domain.getCreate_uid_text());
         if(domain.getCompany_id_textDirtyFlag())
            model.setCompany_id_text(domain.getCompany_id_text());
         if(domain.getSecurity_leadDirtyFlag())
            model.setSecurity_lead(domain.getSecurity_lead());
         if(domain.getExternal_report_layout_idDirtyFlag())
            model.setExternal_report_layout_id(domain.getExternal_report_layout_id());
         if(domain.getPurchase_tax_idDirtyFlag())
            model.setPurchase_tax_id(domain.getPurchase_tax_id());
         if(domain.getPropagation_minimum_deltaDirtyFlag())
            model.setPropagation_minimum_delta(domain.getPropagation_minimum_delta());
         if(domain.getQuotation_validity_daysDirtyFlag())
            model.setQuotation_validity_days(domain.getQuotation_validity_days());
         if(domain.getTax_calculation_rounding_methodDirtyFlag())
            model.setTax_calculation_rounding_method(domain.getTax_calculation_rounding_method());
         if(domain.getCurrency_exchange_journal_idDirtyFlag())
            model.setCurrency_exchange_journal_id(domain.getCurrency_exchange_journal_id());
         if(domain.getPo_double_validation_amountDirtyFlag())
            model.setPo_double_validation_amount(domain.getPo_double_validation_amount());
         if(domain.getChart_template_id_textDirtyFlag())
            model.setChart_template_id_text(domain.getChart_template_id_text());
         if(domain.getSale_tax_idDirtyFlag())
            model.setSale_tax_id(domain.getSale_tax_id());
         if(domain.getDefault_sale_order_template_id_textDirtyFlag())
            model.setDefault_sale_order_template_id_text(domain.getDefault_sale_order_template_id_text());
         if(domain.getDefault_sale_order_template_idDirtyFlag())
            model.setDefault_sale_order_template_id(domain.getDefault_sale_order_template_id());
         if(domain.getCompany_idDirtyFlag())
            model.setCompany_id(domain.getCompany_id());
         if(domain.getDigest_idDirtyFlag())
            model.setDigest_id(domain.getDigest_id());
         if(domain.getTemplate_idDirtyFlag())
            model.setTemplate_id(domain.getTemplate_id());
         if(domain.getChart_template_idDirtyFlag())
            model.setChart_template_id(domain.getChart_template_id());
         if(domain.getDeposit_default_product_idDirtyFlag())
            model.setDeposit_default_product_id(domain.getDeposit_default_product_id());
         if(domain.getCreate_uidDirtyFlag())
            model.setCreate_uid(domain.getCreate_uid());
         if(domain.getAuth_signup_template_user_idDirtyFlag())
            model.setAuth_signup_template_user_id(domain.getAuth_signup_template_user_id());
         if(domain.getWrite_uidDirtyFlag())
            model.setWrite_uid(domain.getWrite_uid());
        return model ;
    }

    public Res_config_settings convert2Domain( Ires_config_settings model ,Res_config_settings domain) {
        if(model == null)
            return domain ;
        if(domain == null){
            domain = new Res_config_settings();
        }

        if(model.getModule_account_bank_statement_import_qifDirtyFlag())
            domain.setModule_account_bank_statement_import_qif(model.getModule_account_bank_statement_import_qif());
        if(model.getModule_account_bank_statement_import_ofxDirtyFlag())
            domain.setModule_account_bank_statement_import_ofx(model.getModule_account_bank_statement_import_ofx());
        if(model.getHas_google_mapsDirtyFlag())
            domain.setHas_google_maps(model.getHas_google_maps());
        if(model.getModule_l10n_eu_serviceDirtyFlag())
            domain.setModule_l10n_eu_service(model.getModule_l10n_eu_service());
        if(model.getCdn_activatedDirtyFlag())
            domain.setCdn_activated(model.getCdn_activated());
        if(model.getWebsite_default_lang_codeDirtyFlag())
            domain.setWebsite_default_lang_code(model.getWebsite_default_lang_code());
        if(model.getAuth_signup_reset_passwordDirtyFlag())
            domain.setAuth_signup_reset_password(model.getAuth_signup_reset_password());
        if(model.getWebsite_country_group_idsDirtyFlag())
            domain.setWebsite_country_group_ids(model.getWebsite_country_group_ids());
        if(model.getSocial_instagramDirtyFlag())
            domain.setSocial_instagram(model.getSocial_instagram());
        if(model.getModule_purchase_requisitionDirtyFlag())
            domain.setModule_purchase_requisition(model.getModule_purchase_requisition());
        if(model.getModule_delivery_easypostDirtyFlag())
            domain.setModule_delivery_easypost(model.getModule_delivery_easypost());
        if(model.getGroup_discount_per_so_lineDirtyFlag())
            domain.setGroup_discount_per_so_line(model.getGroup_discount_per_so_line());
        if(model.getAutomatic_invoiceDirtyFlag())
            domain.setAutomatic_invoice(model.getAutomatic_invoice());
        if(model.getModule_account_plaidDirtyFlag())
            domain.setModule_account_plaid(model.getModule_account_plaid());
        if(model.getGoogle_management_client_idDirtyFlag())
            domain.setGoogle_management_client_id(model.getGoogle_management_client_id());
        if(model.getIdDirtyFlag())
            domain.setId(model.getId());
        if(model.getModule_account_check_printingDirtyFlag())
            domain.setModule_account_check_printing(model.getModule_account_check_printing());
        if(model.getModule_partner_autocompleteDirtyFlag())
            domain.setModule_partner_autocomplete(model.getModule_partner_autocomplete());
        if(model.getLanguage_countDirtyFlag())
            domain.setLanguage_count(model.getLanguage_count());
        if(model.getModule_website_linksDirtyFlag())
            domain.setModule_website_links(model.getModule_website_links());
        if(model.getWebsite_form_enable_metadataDirtyFlag())
            domain.setWebsite_form_enable_metadata(model.getWebsite_form_enable_metadata());
        if(model.getHas_social_networkDirtyFlag())
            domain.setHas_social_network(model.getHas_social_network());
        if(model.getGroup_sale_delivery_addressDirtyFlag())
            domain.setGroup_sale_delivery_address(model.getGroup_sale_delivery_address());
        if(model.getGoogle_analytics_keyDirtyFlag())
            domain.setGoogle_analytics_key(model.getGoogle_analytics_key());
        if(model.getModule_auth_ldapDirtyFlag())
            domain.setModule_auth_ldap(model.getModule_auth_ldap());
        if(model.getSpecific_user_accountDirtyFlag())
            domain.setSpecific_user_account(model.getSpecific_user_account());
        if(model.getModule_website_hr_recruitmentDirtyFlag())
            domain.setModule_website_hr_recruitment(model.getModule_website_hr_recruitment());
        if(model.getModule_project_forecastDirtyFlag())
            domain.setModule_project_forecast(model.getModule_project_forecast());
        if(model.getGroup_stock_tracking_ownerDirtyFlag())
            domain.setGroup_stock_tracking_owner(model.getGroup_stock_tracking_owner());
        if(model.getModule_google_calendarDirtyFlag())
            domain.setModule_google_calendar(model.getModule_google_calendar());
        if(model.getModule_accountDirtyFlag())
            domain.setModule_account(model.getModule_account());
        if(model.getModule_google_driveDirtyFlag())
            domain.setModule_google_drive(model.getModule_google_drive());
        if(model.getPos_pricelist_settingDirtyFlag())
            domain.setPos_pricelist_setting(model.getPos_pricelist_setting());
        if(model.getCompany_share_partnerDirtyFlag())
            domain.setCompany_share_partner(model.getCompany_share_partner());
        if(model.getModule_currency_rate_liveDirtyFlag())
            domain.setModule_currency_rate_live(model.getModule_currency_rate_live());
        if(model.getGroup_proforma_salesDirtyFlag())
            domain.setGroup_proforma_sales(model.getGroup_proforma_sales());
        if(model.getModule_delivery_fedexDirtyFlag())
            domain.setModule_delivery_fedex(model.getModule_delivery_fedex());
        if(model.getModule_product_email_templateDirtyFlag())
            domain.setModule_product_email_template(model.getModule_product_email_template());
        if(model.getShow_effectDirtyFlag())
            domain.setShow_effect(model.getShow_effect());
        if(model.getDefault_picking_policyDirtyFlag())
            domain.setDefault_picking_policy(model.getDefault_picking_policy());
        if(model.getSocial_youtubeDirtyFlag())
            domain.setSocial_youtube(model.getSocial_youtube());
        if(model.getWebsite_company_idDirtyFlag())
            domain.setWebsite_company_id(model.getWebsite_company_id());
        if(model.getModule_mrp_byproductDirtyFlag())
            domain.setModule_mrp_byproduct(model.getModule_mrp_byproduct());
        if(model.getModule_delivery_uspsDirtyFlag())
            domain.setModule_delivery_usps(model.getModule_delivery_usps());
        if(model.getModule_delivery_dhlDirtyFlag())
            domain.setModule_delivery_dhl(model.getModule_delivery_dhl());
        if(model.getGroup_project_ratingDirtyFlag())
            domain.setGroup_project_rating(model.getGroup_project_rating());
        if(model.getGoogle_maps_api_keyDirtyFlag())
            domain.setGoogle_maps_api_key(model.getGoogle_maps_api_key());
        if(model.getGroup_use_leadDirtyFlag())
            domain.setGroup_use_lead(model.getGroup_use_lead());
        if(model.getGroup_stock_tracking_lotDirtyFlag())
            domain.setGroup_stock_tracking_lot(model.getGroup_stock_tracking_lot());
        if(model.getGroup_stock_adv_locationDirtyFlag())
            domain.setGroup_stock_adv_location(model.getGroup_stock_adv_location());
        if(model.getPos_sales_priceDirtyFlag())
            domain.setPos_sales_price(model.getPos_sales_price());
        if(model.getHas_chart_of_accountsDirtyFlag())
            domain.setHas_chart_of_accounts(model.getHas_chart_of_accounts());
        if(model.getMulti_sales_price_methodDirtyFlag())
            domain.setMulti_sales_price_method(model.getMulti_sales_price_method());
        if(model.getWrite_dateDirtyFlag())
            domain.setWrite_date(model.getWrite_date());
        if(model.getModule_procurement_jitDirtyFlag())
            domain.setModule_procurement_jit(model.getModule_procurement_jit());
        if(model.getModule_account_assetDirtyFlag())
            domain.setModule_account_asset(model.getModule_account_asset());
        if(model.getUse_mailgatewayDirtyFlag())
            domain.setUse_mailgateway(model.getUse_mailgateway());
        if(model.getGroup_sale_pricelistDirtyFlag())
            domain.setGroup_sale_pricelist(model.getGroup_sale_pricelist());
        if(model.getCrm_default_team_idDirtyFlag())
            domain.setCrm_default_team_id(model.getCrm_default_team_id());
        if(model.getGroup_stock_multi_locationsDirtyFlag())
            domain.setGroup_stock_multi_locations(model.getGroup_stock_multi_locations());
        if(model.getUse_manufacturing_leadDirtyFlag())
            domain.setUse_manufacturing_lead(model.getUse_manufacturing_lead());
        if(model.getModule_google_spreadsheetDirtyFlag())
            domain.setModule_google_spreadsheet(model.getModule_google_spreadsheet());
        if(model.getShow_line_subtotals_tax_selectionDirtyFlag())
            domain.setShow_line_subtotals_tax_selection(model.getShow_line_subtotals_tax_selection());
        if(model.getLanguage_idsDirtyFlag())
            domain.setLanguage_ids(model.getLanguage_ids());
        if(model.getModule_website_sale_deliveryDirtyFlag())
            domain.setModule_website_sale_delivery(model.getModule_website_sale_delivery());
        if(model.getModule_mrp_mpsDirtyFlag())
            domain.setModule_mrp_mps(model.getModule_mrp_mps());
        if(model.getPartner_autocomplete_insufficient_creditDirtyFlag())
            domain.setPartner_autocomplete_insufficient_credit(model.getPartner_autocomplete_insufficient_credit());
        if(model.getModule_hr_org_chartDirtyFlag())
            domain.setModule_hr_org_chart(model.getModule_hr_org_chart());
        if(model.getModule_product_expiryDirtyFlag())
            domain.setModule_product_expiry(model.getModule_product_expiry());
        if(model.getModule_delivery_bpostDirtyFlag())
            domain.setModule_delivery_bpost(model.getModule_delivery_bpost());
        if(model.getModule_stock_barcodeDirtyFlag())
            domain.setModule_stock_barcode(model.getModule_stock_barcode());
        if(model.getSocial_githubDirtyFlag())
            domain.setSocial_github(model.getSocial_github());
        if(model.getModule_account_intrastatDirtyFlag())
            domain.setModule_account_intrastat(model.getModule_account_intrastat());
        if(model.getAuto_done_settingDirtyFlag())
            domain.setAuto_done_setting(model.getAuto_done_setting());
        if(model.getAuth_signup_uninvitedDirtyFlag())
            domain.setAuth_signup_uninvited(model.getAuth_signup_uninvited());
        if(model.getCompany_share_productDirtyFlag())
            domain.setCompany_share_product(model.getCompany_share_product());
        if(model.getGroup_sale_order_templateDirtyFlag())
            domain.setGroup_sale_order_template(model.getGroup_sale_order_template());
        if(model.getModule_account_sepa_direct_debitDirtyFlag())
            domain.setModule_account_sepa_direct_debit(model.getModule_account_sepa_direct_debit());
        if(model.getUse_quotation_validity_daysDirtyFlag())
            domain.setUse_quotation_validity_days(model.getUse_quotation_validity_days());
        if(model.getModule_account_reports_followupDirtyFlag())
            domain.setModule_account_reports_followup(model.getModule_account_reports_followup());
        if(model.getModule_account_batch_paymentDirtyFlag())
            domain.setModule_account_batch_payment(model.getModule_account_batch_payment());
        if(model.getSocial_twitterDirtyFlag())
            domain.setSocial_twitter(model.getSocial_twitter());
        if(model.getModule_account_budgetDirtyFlag())
            domain.setModule_account_budget(model.getModule_account_budget());
        if(model.getGroup_mrp_routingsDirtyFlag())
            domain.setGroup_mrp_routings(model.getGroup_mrp_routings());
        if(model.getGroup_cash_roundingDirtyFlag())
            domain.setGroup_cash_rounding(model.getGroup_cash_rounding());
        if(model.getModule_stock_landed_costsDirtyFlag())
            domain.setModule_stock_landed_costs(model.getModule_stock_landed_costs());
        if(model.getWebsite_nameDirtyFlag())
            domain.setWebsite_name(model.getWebsite_name());
        if(model.getModule_website_sale_stockDirtyFlag())
            domain.setModule_website_sale_stock(model.getModule_website_sale_stock());
        if(model.getGroup_website_popup_on_exitDirtyFlag())
            domain.setGroup_website_popup_on_exit(model.getGroup_website_popup_on_exit());
        if(model.getModule_website_event_trackDirtyFlag())
            domain.setModule_website_event_track(model.getModule_website_event_track());
        if(model.getGroup_manage_vendor_priceDirtyFlag())
            domain.setGroup_manage_vendor_price(model.getGroup_manage_vendor_price());
        if(model.getModule_deliveryDirtyFlag())
            domain.setModule_delivery(model.getModule_delivery());
        if(model.getModule_account_invoice_extractDirtyFlag())
            domain.setModule_account_invoice_extract(model.getModule_account_invoice_extract());
        if(model.getChannel_idDirtyFlag())
            domain.setChannel_id(model.getChannel_id());
        if(model.getGroup_warning_saleDirtyFlag())
            domain.setGroup_warning_sale(model.getGroup_warning_sale());
        if(model.getCdn_urlDirtyFlag())
            domain.setCdn_url(model.getCdn_url());
        if(model.getModule_event_barcodeDirtyFlag())
            domain.setModule_event_barcode(model.getModule_event_barcode());
        if(model.getAlias_domainDirtyFlag())
            domain.setAlias_domain(model.getAlias_domain());
        if(model.getSocial_linkedinDirtyFlag())
            domain.setSocial_linkedin(model.getSocial_linkedin());
        if(model.getGroup_stock_multi_warehousesDirtyFlag())
            domain.setGroup_stock_multi_warehouses(model.getGroup_stock_multi_warehouses());
        if(model.getSalesperson_idDirtyFlag())
            domain.setSalesperson_id(model.getSalesperson_id());
        if(model.getModule_account_reportsDirtyFlag())
            domain.setModule_account_reports(model.getModule_account_reports());
        if(model.getGroup_product_pricelistDirtyFlag())
            domain.setGroup_product_pricelist(model.getGroup_product_pricelist());
        if(model.getModule_crm_phone_validationDirtyFlag())
            domain.setModule_crm_phone_validation(model.getModule_crm_phone_validation());
        if(model.getModule_website_versionDirtyFlag())
            domain.setModule_website_version(model.getModule_website_version());
        if(model.getModule_base_importDirtyFlag())
            domain.setModule_base_import(model.getModule_base_import());
        if(model.get__last_updateDirtyFlag())
            domain.set__last_update(model.get__last_update());
        if(model.getModule_account_bank_statement_import_csvDirtyFlag())
            domain.setModule_account_bank_statement_import_csv(model.getModule_account_bank_statement_import_csv());
        if(model.getModule_account_taxcloudDirtyFlag())
            domain.setModule_account_taxcloud(model.getModule_account_taxcloud());
        if(model.getUse_sale_noteDirtyFlag())
            domain.setUse_sale_note(model.getUse_sale_note());
        if(model.getCart_abandoned_delayDirtyFlag())
            domain.setCart_abandoned_delay(model.getCart_abandoned_delay());
        if(model.getWebsite_domainDirtyFlag())
            domain.setWebsite_domain(model.getWebsite_domain());
        if(model.getModule_account_accountantDirtyFlag())
            domain.setModule_account_accountant(model.getModule_account_accountant());
        if(model.getModule_sale_marginDirtyFlag())
            domain.setModule_sale_margin(model.getModule_sale_margin());
        if(model.getDigest_emailsDirtyFlag())
            domain.setDigest_emails(model.getDigest_emails());
        if(model.getModule_padDirtyFlag())
            domain.setModule_pad(model.getModule_pad());
        if(model.getGroup_warning_accountDirtyFlag())
            domain.setGroup_warning_account(model.getGroup_warning_account());
        if(model.getGroup_display_incotermDirtyFlag())
            domain.setGroup_display_incoterm(model.getGroup_display_incoterm());
        if(model.getModule_website_sale_wishlistDirtyFlag())
            domain.setModule_website_sale_wishlist(model.getModule_website_sale_wishlist());
        if(model.getUser_default_rightsDirtyFlag())
            domain.setUser_default_rights(model.getUser_default_rights());
        if(model.getDefault_purchase_methodDirtyFlag())
            domain.setDefault_purchase_method(model.getDefault_purchase_method());
        if(model.getGroup_delivery_invoice_addressDirtyFlag())
            domain.setGroup_delivery_invoice_address(model.getGroup_delivery_invoice_address());
        if(model.getGroup_lot_on_delivery_slipDirtyFlag())
            domain.setGroup_lot_on_delivery_slip(model.getGroup_lot_on_delivery_slip());
        if(model.getModule_event_saleDirtyFlag())
            domain.setModule_event_sale(model.getModule_event_sale());
        if(model.getGroup_show_line_subtotals_tax_includedDirtyFlag())
            domain.setGroup_show_line_subtotals_tax_included(model.getGroup_show_line_subtotals_tax_included());
        if(model.getDisplay_nameDirtyFlag())
            domain.setDisplay_name(model.getDisplay_name());
        if(model.getGroup_product_variantDirtyFlag())
            domain.setGroup_product_variant(model.getGroup_product_variant());
        if(model.getModule_account_sepaDirtyFlag())
            domain.setModule_account_sepa(model.getModule_account_sepa());
        if(model.getGroup_multi_currencyDirtyFlag())
            domain.setGroup_multi_currency(model.getGroup_multi_currency());
        if(model.getGroup_products_in_billsDirtyFlag())
            domain.setGroup_products_in_bills(model.getGroup_products_in_bills());
        if(model.getGroup_analytic_accountingDirtyFlag())
            domain.setGroup_analytic_accounting(model.getGroup_analytic_accounting());
        if(model.getGroup_stock_packagingDirtyFlag())
            domain.setGroup_stock_packaging(model.getGroup_stock_packaging());
        if(model.getWebsite_slide_google_app_keyDirtyFlag())
            domain.setWebsite_slide_google_app_key(model.getWebsite_slide_google_app_key());
        if(model.getPo_order_approvalDirtyFlag())
            domain.setPo_order_approval(model.getPo_order_approval());
        if(model.getIs_installed_saleDirtyFlag())
            domain.setIs_installed_sale(model.getIs_installed_sale());
        if(model.getModule_account_paymentDirtyFlag())
            domain.setModule_account_payment(model.getModule_account_payment());
        if(model.getGroup_analytic_tagsDirtyFlag())
            domain.setGroup_analytic_tags(model.getGroup_analytic_tags());
        if(model.getGroup_sale_order_datesDirtyFlag())
            domain.setGroup_sale_order_dates(model.getGroup_sale_order_dates());
        if(model.getModule_voipDirtyFlag())
            domain.setModule_voip(model.getModule_voip());
        if(model.getCart_recovery_mail_templateDirtyFlag())
            domain.setCart_recovery_mail_template(model.getCart_recovery_mail_template());
        if(model.getGroup_multi_websiteDirtyFlag())
            domain.setGroup_multi_website(model.getGroup_multi_website());
        if(model.getModule_auth_oauthDirtyFlag())
            domain.setModule_auth_oauth(model.getModule_auth_oauth());
        if(model.getSale_delivery_settingsDirtyFlag())
            domain.setSale_delivery_settings(model.getSale_delivery_settings());
        if(model.getModule_sale_quotation_builderDirtyFlag())
            domain.setModule_sale_quotation_builder(model.getModule_sale_quotation_builder());
        if(model.getModule_inter_company_rulesDirtyFlag())
            domain.setModule_inter_company_rules(model.getModule_inter_company_rules());
        if(model.getUse_security_leadDirtyFlag())
            domain.setUse_security_lead(model.getUse_security_lead());
        if(model.getDefault_invoice_policyDirtyFlag())
            domain.setDefault_invoice_policy(model.getDefault_invoice_policy());
        if(model.getMulti_sales_priceDirtyFlag())
            domain.setMulti_sales_price(model.getMulti_sales_price());
        if(model.getLock_confirmed_poDirtyFlag())
            domain.setLock_confirmed_po(model.getLock_confirmed_po());
        if(model.getProduct_weight_in_lbsDirtyFlag())
            domain.setProduct_weight_in_lbs(model.getProduct_weight_in_lbs());
        if(model.getCreate_dateDirtyFlag())
            domain.setCreate_date(model.getCreate_date());
        if(model.getHas_google_analytics_dashboardDirtyFlag())
            domain.setHas_google_analytics_dashboard(model.getHas_google_analytics_dashboard());
        if(model.getModule_stock_picking_batchDirtyFlag())
            domain.setModule_stock_picking_batch(model.getModule_stock_picking_batch());
        if(model.getWebsite_idDirtyFlag())
            domain.setWebsite_id(model.getWebsite_id());
        if(model.getExpense_alias_prefixDirtyFlag())
            domain.setExpense_alias_prefix(model.getExpense_alias_prefix());
        if(model.getModule_account_deferred_revenueDirtyFlag())
            domain.setModule_account_deferred_revenue(model.getModule_account_deferred_revenue());
        if(model.getSocial_facebookDirtyFlag())
            domain.setSocial_facebook(model.getSocial_facebook());
        if(model.getModule_web_unsplashDirtyFlag())
            domain.setModule_web_unsplash(model.getModule_web_unsplash());
        if(model.getGroup_mass_mailing_campaignDirtyFlag())
            domain.setGroup_mass_mailing_campaign(model.getGroup_mass_mailing_campaign());
        if(model.getModule_account_bank_statement_import_camtDirtyFlag())
            domain.setModule_account_bank_statement_import_camt(model.getModule_account_bank_statement_import_camt());
        if(model.getModule_product_marginDirtyFlag())
            domain.setModule_product_margin(model.getModule_product_margin());
        if(model.getGroup_subtask_projectDirtyFlag())
            domain.setGroup_subtask_project(model.getGroup_subtask_project());
        if(model.getModule_account_3way_matchDirtyFlag())
            domain.setModule_account_3way_match(model.getModule_account_3way_match());
        if(model.getModule_website_sale_digitalDirtyFlag())
            domain.setModule_website_sale_digital(model.getModule_website_sale_digital());
        if(model.getModule_sale_couponDirtyFlag())
            domain.setModule_sale_coupon(model.getModule_sale_coupon());
        if(model.getShow_blacklist_buttonsDirtyFlag())
            domain.setShow_blacklist_buttons(model.getShow_blacklist_buttons());
        if(model.getGroup_warning_stockDirtyFlag())
            domain.setGroup_warning_stock(model.getGroup_warning_stock());
        if(model.getGroup_multi_companyDirtyFlag())
            domain.setGroup_multi_company(model.getGroup_multi_company());
        if(model.getGroup_attendance_use_pinDirtyFlag())
            domain.setGroup_attendance_use_pin(model.getGroup_attendance_use_pin());
        if(model.getSalesteam_idDirtyFlag())
            domain.setSalesteam_id(model.getSalesteam_id());
        if(model.getFaviconDirtyFlag())
            domain.setFavicon(model.getFavicon());
        if(model.getModule_website_sale_comparisonDirtyFlag())
            domain.setModule_website_sale_comparison(model.getModule_website_sale_comparison());
        if(model.getAvailable_thresholdDirtyFlag())
            domain.setAvailable_threshold(model.getAvailable_threshold());
        if(model.getUse_po_leadDirtyFlag())
            domain.setUse_po_lead(model.getUse_po_lead());
        if(model.getGroup_fiscal_yearDirtyFlag())
            domain.setGroup_fiscal_year(model.getGroup_fiscal_year());
        if(model.getModule_hr_timesheetDirtyFlag())
            domain.setModule_hr_timesheet(model.getModule_hr_timesheet());
        if(model.getModule_mrp_plmDirtyFlag())
            domain.setModule_mrp_plm(model.getModule_mrp_plm());
        if(model.getModule_account_yodleeDirtyFlag())
            domain.setModule_account_yodlee(model.getModule_account_yodlee());
        if(model.getCdn_filtersDirtyFlag())
            domain.setCdn_filters(model.getCdn_filters());
        if(model.getUse_propagation_minimum_deltaDirtyFlag())
            domain.setUse_propagation_minimum_delta(model.getUse_propagation_minimum_delta());
        if(model.getModule_delivery_upsDirtyFlag())
            domain.setModule_delivery_ups(model.getModule_delivery_ups());
        if(model.getFail_counterDirtyFlag())
            domain.setFail_counter(model.getFail_counter());
        if(model.getGroup_stock_production_lotDirtyFlag())
            domain.setGroup_stock_production_lot(model.getGroup_stock_production_lot());
        if(model.getHas_accounting_entriesDirtyFlag())
            domain.setHas_accounting_entries(model.getHas_accounting_entries());
        if(model.getGroup_uomDirtyFlag())
            domain.setGroup_uom(model.getGroup_uom());
        if(model.getMass_mailing_outgoing_mail_serverDirtyFlag())
            domain.setMass_mailing_outgoing_mail_server(model.getMass_mailing_outgoing_mail_server());
        if(model.getCrm_alias_prefixDirtyFlag())
            domain.setCrm_alias_prefix(model.getCrm_alias_prefix());
        if(model.getSocial_googleplusDirtyFlag())
            domain.setSocial_googleplus(model.getSocial_googleplus());
        if(model.getGroup_route_so_linesDirtyFlag())
            domain.setGroup_route_so_lines(model.getGroup_route_so_lines());
        if(model.getGoogle_management_client_secretDirtyFlag())
            domain.setGoogle_management_client_secret(model.getGoogle_management_client_secret());
        if(model.getSocial_default_imageDirtyFlag())
            domain.setSocial_default_image(model.getSocial_default_image());
        if(model.getHas_google_analyticsDirtyFlag())
            domain.setHas_google_analytics(model.getHas_google_analytics());
        if(model.getModule_website_event_questionsDirtyFlag())
            domain.setModule_website_event_questions(model.getModule_website_event_questions());
        if(model.getWebsite_default_lang_idDirtyFlag())
            domain.setWebsite_default_lang_id(model.getWebsite_default_lang_id());
        if(model.getInventory_availabilityDirtyFlag())
            domain.setInventory_availability(model.getInventory_availability());
        if(model.getGroup_warning_purchaseDirtyFlag())
            domain.setGroup_warning_purchase(model.getGroup_warning_purchase());
        if(model.getModule_quality_controlDirtyFlag())
            domain.setModule_quality_control(model.getModule_quality_control());
        if(model.getGenerate_lead_from_aliasDirtyFlag())
            domain.setGenerate_lead_from_alias(model.getGenerate_lead_from_alias());
        if(model.getSale_pricelist_settingDirtyFlag())
            domain.setSale_pricelist_setting(model.getSale_pricelist_setting());
        if(model.getGroup_pricelist_itemDirtyFlag())
            domain.setGroup_pricelist_item(model.getGroup_pricelist_item());
        if(model.getExternal_email_server_defaultDirtyFlag())
            domain.setExternal_email_server_default(model.getExternal_email_server_default());
        if(model.getUnsplash_access_keyDirtyFlag())
            domain.setUnsplash_access_key(model.getUnsplash_access_key());
        if(model.getModule_base_gengoDirtyFlag())
            domain.setModule_base_gengo(model.getModule_base_gengo());
        if(model.getModule_website_event_saleDirtyFlag())
            domain.setModule_website_event_sale(model.getModule_website_event_sale());
        if(model.getCrm_default_user_idDirtyFlag())
            domain.setCrm_default_user_id(model.getCrm_default_user_id());
        if(model.getModule_stock_dropshippingDirtyFlag())
            domain.setModule_stock_dropshipping(model.getModule_stock_dropshipping());
        if(model.getModule_crm_revealDirtyFlag())
            domain.setModule_crm_reveal(model.getModule_crm_reveal());
        if(model.getMass_mailing_mail_server_idDirtyFlag())
            domain.setMass_mailing_mail_server_id(model.getMass_mailing_mail_server_id());
        if(model.getGroup_show_line_subtotals_tax_excludedDirtyFlag())
            domain.setGroup_show_line_subtotals_tax_excluded(model.getGroup_show_line_subtotals_tax_excluded());
        if(model.getModule_hr_recruitment_surveyDirtyFlag())
            domain.setModule_hr_recruitment_survey(model.getModule_hr_recruitment_survey());
        if(model.getModule_mrp_workorderDirtyFlag())
            domain.setModule_mrp_workorder(model.getModule_mrp_workorder());
        if(model.getModule_pos_mercuryDirtyFlag())
            domain.setModule_pos_mercury(model.getModule_pos_mercury());
        if(model.getInvoice_reference_typeDirtyFlag())
            domain.setInvoice_reference_type(model.getInvoice_reference_type());
        if(model.getCompany_currency_idDirtyFlag())
            domain.setCompany_currency_id(model.getCompany_currency_id());
        if(model.getTax_exigibilityDirtyFlag())
            domain.setTax_exigibility(model.getTax_exigibility());
        if(model.getWrite_uid_textDirtyFlag())
            domain.setWrite_uid_text(model.getWrite_uid_text());
        if(model.getAccount_bank_reconciliation_startDirtyFlag())
            domain.setAccount_bank_reconciliation_start(model.getAccount_bank_reconciliation_start());
        if(model.getTax_cash_basis_journal_idDirtyFlag())
            domain.setTax_cash_basis_journal_id(model.getTax_cash_basis_journal_id());
        if(model.getPo_leadDirtyFlag())
            domain.setPo_lead(model.getPo_lead());
        if(model.getSnailmail_colorDirtyFlag())
            domain.setSnailmail_color(model.getSnailmail_color());
        if(model.getPaperformat_idDirtyFlag())
            domain.setPaperformat_id(model.getPaperformat_id());
        if(model.getPortal_confirmation_signDirtyFlag())
            domain.setPortal_confirmation_sign(model.getPortal_confirmation_sign());
        if(model.getCurrency_idDirtyFlag())
            domain.setCurrency_id(model.getCurrency_id());
        if(model.getDigest_id_textDirtyFlag())
            domain.setDigest_id_text(model.getDigest_id_text());
        if(model.getSale_noteDirtyFlag())
            domain.setSale_note(model.getSale_note());
        if(model.getAuth_signup_template_user_id_textDirtyFlag())
            domain.setAuth_signup_template_user_id_text(model.getAuth_signup_template_user_id_text());
        if(model.getInvoice_is_printDirtyFlag())
            domain.setInvoice_is_print(model.getInvoice_is_print());
        if(model.getDeposit_default_product_id_textDirtyFlag())
            domain.setDeposit_default_product_id_text(model.getDeposit_default_product_id_text());
        if(model.getResource_calendar_idDirtyFlag())
            domain.setResource_calendar_id(model.getResource_calendar_id());
        if(model.getPo_lockDirtyFlag())
            domain.setPo_lock(model.getPo_lock());
        if(model.getInvoice_is_snailmailDirtyFlag())
            domain.setInvoice_is_snailmail(model.getInvoice_is_snailmail());
        if(model.getManufacturing_leadDirtyFlag())
            domain.setManufacturing_lead(model.getManufacturing_lead());
        if(model.getPo_double_validationDirtyFlag())
            domain.setPo_double_validation(model.getPo_double_validation());
        if(model.getReport_footerDirtyFlag())
            domain.setReport_footer(model.getReport_footer());
        if(model.getTemplate_id_textDirtyFlag())
            domain.setTemplate_id_text(model.getTemplate_id_text());
        if(model.getInvoice_is_emailDirtyFlag())
            domain.setInvoice_is_email(model.getInvoice_is_email());
        if(model.getPortal_confirmation_payDirtyFlag())
            domain.setPortal_confirmation_pay(model.getPortal_confirmation_pay());
        if(model.getQr_codeDirtyFlag())
            domain.setQr_code(model.getQr_code());
        if(model.getSnailmail_duplexDirtyFlag())
            domain.setSnailmail_duplex(model.getSnailmail_duplex());
        if(model.getCreate_uid_textDirtyFlag())
            domain.setCreate_uid_text(model.getCreate_uid_text());
        if(model.getCompany_id_textDirtyFlag())
            domain.setCompany_id_text(model.getCompany_id_text());
        if(model.getSecurity_leadDirtyFlag())
            domain.setSecurity_lead(model.getSecurity_lead());
        if(model.getExternal_report_layout_idDirtyFlag())
            domain.setExternal_report_layout_id(model.getExternal_report_layout_id());
        if(model.getPurchase_tax_idDirtyFlag())
            domain.setPurchase_tax_id(model.getPurchase_tax_id());
        if(model.getPropagation_minimum_deltaDirtyFlag())
            domain.setPropagation_minimum_delta(model.getPropagation_minimum_delta());
        if(model.getQuotation_validity_daysDirtyFlag())
            domain.setQuotation_validity_days(model.getQuotation_validity_days());
        if(model.getTax_calculation_rounding_methodDirtyFlag())
            domain.setTax_calculation_rounding_method(model.getTax_calculation_rounding_method());
        if(model.getCurrency_exchange_journal_idDirtyFlag())
            domain.setCurrency_exchange_journal_id(model.getCurrency_exchange_journal_id());
        if(model.getPo_double_validation_amountDirtyFlag())
            domain.setPo_double_validation_amount(model.getPo_double_validation_amount());
        if(model.getChart_template_id_textDirtyFlag())
            domain.setChart_template_id_text(model.getChart_template_id_text());
        if(model.getSale_tax_idDirtyFlag())
            domain.setSale_tax_id(model.getSale_tax_id());
        if(model.getDefault_sale_order_template_id_textDirtyFlag())
            domain.setDefault_sale_order_template_id_text(model.getDefault_sale_order_template_id_text());
        if(model.getDefault_sale_order_template_idDirtyFlag())
            domain.setDefault_sale_order_template_id(model.getDefault_sale_order_template_id());
        if(model.getCompany_idDirtyFlag())
            domain.setCompany_id(model.getCompany_id());
        if(model.getDigest_idDirtyFlag())
            domain.setDigest_id(model.getDigest_id());
        if(model.getTemplate_idDirtyFlag())
            domain.setTemplate_id(model.getTemplate_id());
        if(model.getChart_template_idDirtyFlag())
            domain.setChart_template_id(model.getChart_template_id());
        if(model.getDeposit_default_product_idDirtyFlag())
            domain.setDeposit_default_product_id(model.getDeposit_default_product_id());
        if(model.getCreate_uidDirtyFlag())
            domain.setCreate_uid(model.getCreate_uid());
        if(model.getAuth_signup_template_user_idDirtyFlag())
            domain.setAuth_signup_template_user_id(model.getAuth_signup_template_user_id());
        if(model.getWrite_uidDirtyFlag())
            domain.setWrite_uid(model.getWrite_uid());
        return domain ;
    }


}
